<%@page import="myclass.huodong"%>
<%@page import="myclass.HuoDongLei"%>
<%@ page import="java.util.*" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"

    pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

         <title>用户查询页面</title>

</head>
<style type="text/css">
   div {
    margin: 0 600px;
   }
   p {
    display: inline;
   }
   
   h2 {
    text-align: center;
    color: blue;
   }
   .xx{
    height: 1000px;
    width: 500;
    
   }
   
   .ys {
   Font-size:25px;
    color: green;
   }
 </style>
<body>
<h2>查询结果</h2>
<div class="xx">
<%
String zhuti=null;
String leixing=null;
String shijian=null;
String didian=null;

	try
{zhuti=request.getParameter("zhuti");}
catch(Exception e){}
	try
	{leixing=request.getParameter("leixing");}
	catch(Exception e){}
	try
	{shijian=request.getParameter("shijian");}
	catch(Exception e){}
	try
	{didian=request.getParameter("didian");}
	catch(Exception e){}
	huodong cha=new huodong();
	int arr[]=new int[15];
	arr=cha.mohuchaxun(zhuti, shijian, didian, leixing);
	%>
	<form action="xiangxi.jsp">
	<table border="1" width="500" cellspacing="0">
	<tr>
	<th>主题</th>
	<th>时间</th>
	<th>地点</th>
	<th>详情</th>
	</tr>
	
	<%int i=0;
	while(arr[i]!=0)
	{
		HuoDongLei hdd=new HuoDongLei();
		hdd=cha.show(arr[i]);
		%>
		<tr>
		<td><%out.print(hdd.zhuti);%></td>
		<td><%out.print(hdd.shijian);%></td>
		<td><%out.print(hdd.didian);%></td>
		<td> <button name="tid" value=<%=arr[i]%> type="submit">显示</button></td>
   </tr>
   <% 
   i++;
   }%>
</table>
</form>
<input type="button" onclick="window.location.href='menu.jsp';" value="返回主菜单"><br>
</div>
</body>
</html>